blob: 28b81615272979b644963357488e0202d86a1058 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import type { Metadata } from 'next';
import { TestConsolePage } from './TestConsolePage';
async function getEnabled() {
return !!process.env.ENABLE_TEST_CONSOLE;
}
export default async function ({ params }: { params: Promise<{ websiteId: string }> }) {
const { websiteId } = await params;
const enabled = await getEnabled();
if (!enabled) {
return null;
}
return <TestConsolePage websiteId={websiteId} />;
}
export const metadata: Metadata = {
title: 'Test Console',
};
|